package com.lin.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lin.gulimall.common.utils.PageUtils;
import com.lin.gulimall.common.utils.R;
import com.lin.gulimall.product.entity.AttrEntity;
import com.lin.gulimall.product.vo.Attr;
import com.lin.gulimall.product.vo.AttrGroupRelatinVo;
import com.lin.gulimall.product.vo.AttrRespVo;
import com.lin.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author xiaolin
 * @email 3088386588@qq.com
 * @date 2022-05-08 11:22:21
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attrVo);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String type);

    AttrRespVo getAttrInfo(Long attrId);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    void deleteRelation(AttrGroupRelatinVo[] vos);

    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);

    void updateAttr(AttrVo attrVo);
}

